package birs.controller.staff;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import birs.controller.staff.task.STF001TaskA;

/**
 * Servlet implementation class STF001ControllerA
 */
@WebServlet("/STF001ControllerA")
public class STF001ControllerA extends HttpServlet {
	private static final long serialVersionUID = 1L;
       
    /**
     * @see HttpServlet#HttpServlet()
     */
    public STF001ControllerA() {
        super();
        // TODO Auto-generated constructor stub
    }

	/**
	 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		STF001TaskA stf001TaskA = new STF001TaskA();
		if(request.getParameter("departmentCode") != null){
			stf001TaskA.getSecondDrilldown(request, response);
		}else if(request.getParameter("staffType") != null){
			stf001TaskA.getFirstDrilldown(request, response);
		}else{
			stf001TaskA.getStaffByStaffType(request, response);
		}
	}

	/**
	 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response)
	 */
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		// TODO Auto-generated method stub
	}

}
